package com.wzh.bargain.dao;

import com.wzh.bargain.entity.BarLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzh.bargain.entity.OrderBargainEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author wzh
 * @email 1281204121@qq.com
 * @date 2022-03-08 16:12:49
 */
@Mapper
public interface BarLogDao extends BaseMapper<BarLogEntity> {

    OrderBargainEntity getOrderByUserIdAndBarId(@Param("userId") String userId, @Param("bargainId") String bargainId);

    Integer getLogCountByOrderIdAndUserId(@Param("orderId") String orderId, @Param("userId") String userId);

    Integer getLogCountByBarIdAndBuserId(@Param("buserId") String buserId, @Param("orderId") Long orderId);
}
